Save Method

Saves the referenced Treeview control to a specified binary or Xml file.

Syntax

object.Save(FileName, FileMode)

The Save Method syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
FileName Required. A valid file path and filename.
FileMode Optional. A value or constant that specifies the type of file being Saved, as described in settings

Settings

The settings for Save Method are:

Setting Description
True Operation successful.
False Operation failed. (Trap the Err object for error condition)

The settings for FileMode operator are:

Constant Setting Description
[Binary] 0 (Default) Save from a binary file.
[Xml] 1 Save from an Xml file..

Remarks

This operation will Clear the referenced Treeview control before Saving from file.